import { instance } from '../request'

const request = instance

/**
 * 脱敏校验
 *
 * @param password  密码
 * 
 * @return 到期时间戳
 */
export const desensitizeDataVerifyApi = (
  password: string
): PromiseRes<string> =>
  request.post(`/other/desensitizeData/verify`, { password })

/**
 * 获取脱敏校验认证状态
 *
 * @return boolean
 */
export const desensitizeDataVerifyStatusApi = (): PromiseRes<boolean> =>
  request.get(`/other/desensitizeData/verifyStatus`)

/**
 * 获取脱敏校验认证过期时间
 *
 * @return 到期时间戳
 */
export const desensitizeDataVerifyExpireTimeApi = (): PromiseRes<string> =>
  request.get(`/other/desensitizeData/getExpireTime`)
